import service from '@/utils/request'

export const getNodeName = (params: any) => {
	return service.get('/lineage/api/data_lineage/node_name?node_type=' + params)
}

export const getGraph = (params: any) => {
	return service.get(`/lineage/api/data_lineage/graph?node_type=${params.node_type}&node_name=${params.node_name}&node_id=${params.node_id}`)
}


export const addNextLink = (params: any) => {
	return service.post('/lineage/api/data_lineage/add_next_link', params)
}